﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Mappings;

namespace Apollo.Modules.Commissioning
{
    [NHibernateEntity(Table = "CommissionPayrollItems")]
    public class CommissionPayrollItem
    {
        [PrimaryKey]
        public virtual int Id { get; set; }

        [BelongsTo(Column = "ID_CommissionPayroll")]
        public virtual CommissionPayroll CommissionPayroll { get; set; }

        [BelongsTo(Column = "ID_CommissionType")]
        public virtual CommissionType CommissionType { get; set; }
        
        [BelongsTo(Column = "ID_Employee")]
        public virtual Employee Employee { get; set; }

        [BelongsTo(Column = "ID_Currency")]
        public virtual Currency Currency { get; set; }

        [Property]
        public virtual double GrossValue { get; set; }

        [Property]
        public virtual bool? IsExportedToWiz { get; set; }

        [Property]
        public virtual string WizCode { get; set; }
    }
}
